<?php 
include "products.php";

    $featuredPrd = get_option( 'sticky_products' );
    if(count($featuredPrd) > 0):
?>

<div class="carousel-box">
<h2 class="centerBoxHeading"><?php _e('Featured Products','twentyten');?></h2>
   <div class="inner">
        <a class="prev" href="#"></a>
        <a class="next" href="#"></a>
        
        <div class="carousel">
             <ul>
             <?php foreach($featuredPrd as $id) : ?>
                 <li class="product-col">
                    <div class="img"><a href="<?php echo the_product_permalink($id) ?>"> <img src="<?php echo the_thumbnail($id) ?>" /> </a> </div>
                    <div class="prod-info">
                        <a href="<?php echo the_product_permalink($id) ?>" class="name"><?php echo the_product_name($id); ?></a>
                        <div class="wrapper">
						<div class="bottom">
							<span class="price"><?php echo _product_normal_price($id); ?></span>
							<a href="<?php echo the_product_permalink($id) ?>" class="button"><?php _e('Details','twentyten');?></a>
						</div>
					</div>
                    </div>
                 </li>
             <?php endforeach; ?>
             </ul> 
        </div> 
        
   </div>
</div>

<script>
	jQuery(function() {
		 jQuery(".carousel").jCarouselLite({
			  btnNext: ".next",
			  btnPrev: ".prev"
		 });
	});
</script>

<?php endif; ?>

